#include "animalmanager.h"

AnimalManager &AnimalManager::Instance()
{
    static AnimalManager am;
    return am;
}

void AnimalManager::addAnimal(QSharedPointer<Animal> animal)
{
    m_animals.push_back(animal);
}

const QList<QSharedPointer<Animal> > &AnimalManager::getAnimals() const
{
    return m_animals;
}
